home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
et
/
et-2_2.lha
/
et2.2
/
src
/
LineItem.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-04
|
502b
|
27 lines
//$LineItem$
#include "LineItem.h"
//---- LineItem ----------------------------------------------------------------
MetaImpl(LineItem, (TB(dir), 0));
LineItem::LineItem(bool d, int lw, int ml, int id) : VObject(id)
{
dir= d;
lineWidth= lw;
minLength= ml;
}
Metric LineItem::GetMinSize()
{
if (dir)
return Metric(minLength, lineWidth);
return Metric(lineWidth, minLength);
}
void LineItem::Draw(Rectangle)
{
GrPaintRect(contentRect, Enabled() ? ePatBlack : ePatGrey50);
}